@extends('layout.admin')

@section('content')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>版块添加</span>
    </div>
    <div class="mws-panel-body no-padding">
          
    	<form class="mws-form" action="/cate/insert" method="get" enctype="multipart/form-data">
        	@if(count($errors) > 0)
			<div class="mws-form-message warning">
				@foreach($errors->all() as $error)
					{{$error}}<br>
				@endforeach
			</div>
            @endif 

    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">版块名称</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="title" value="">
    				</div>
    			</div>
    			
    			<div class="mws-form-row">
    				<label class="mws-form-label">状态</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">
                            <li><input type="radio" name="status" value="1"> <label>正常</label></li>
                            <li><input type="radio" name="status" value="0"> <label>禁用</label></li>
                        </ul>
                    </div>
    			</div>
    		</div>
    		<div class="mws-button-row">
    			<!-- 添加隐藏域 -->
    			{{csrf_field()}}
    			<input value="添加" class="btn btn-danger" type="submit">
    			<input value="重置" class="btn " type="reset">
    		</div>
    	</form>
    </div>    	
</div>
@endsection